<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
 <div>
     <h1>员工列表</h1>
    <table>
        <thead>
        <tr>
            <th>姓名</th>
            <th>性别</th>
            <th>邮箱</th>
            <th>部门</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${employees}" var="emp">
        <tr>
            <td>${emp.empName}</td>
            <td>${emp.gender}</td>
            <td>${emp.email}</td>
            <td>${emp.department.deptName}</td>
        </tr>
        </c:forEach>
        </tbody>
    </table>
 </div>
</body>
</html>
